package com.zdb.datastructures.tree.rbt;

public class Demo {

    public static void main(String[] args) {

//        RedBlackTree redBlackTree = genRBTree1();
        RedBlackTree redBlackTree = genRBTree2();

        redBlackTree.insert(6);
    }

    private static RedBlackTree genRBTree1() {
        return RedBlackTree.genTestTree();
    }
    private static RedBlackTree genRBTree2() {
        RedBlackTree redBlackTree = new RedBlackTree();

        int[] arr = new int[]{19, 5, 1, 12, 7, 13, 30, 35};

        for(int i : arr) {
            redBlackTree.insert(i);
        }

        System.out.println(redBlackTree);
        return redBlackTree;
    }


}
